package search

import "cmp"

func isNaN[T cmp.Ordered](x T) bool {
	return x != x
}
